package com.ssmeasy.jdgl.dao;

import com.ssmeasy.jdgl.pojo.User;
import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    User selectByPrimaryKey(Integer id);

    List<User> selectAll();

    int updateByPrimaryKey(User record);

    /**
     * 通过用户名查找用户
     *
     * @param username
     * @return
     */
    User selectByUsername(String username);

}